how to decide columns orientation